using System;
using System.Windows.Forms;

namespace usm.SolDev.App
{
    public partial class AboutForm : Form
    {
        private string[] infoText = 
            {
                "SolDev Environment",
                "Compiler development by Galina Magariu",
                "Application development by Veaceslav Macari and Denis Mardari"
            };

        private int counter;

        public AboutForm()
        {
            InitializeComponent();
        }

        private void AboutForm_Load(object sender, EventArgs e)
        {
            scrollTimer.Start();
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            if (counter >= (infoText.Length - 1))
            {
                counter = 0;
            }
            else
            {
                counter++;
            }

            label1.Text = infoText[counter];
        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void AboutForm_KeyPress(object sender, KeyPressEventArgs e)
        {
            Close();
        }
    }
}